package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        //File dir = new File("./a/b/c");
        File dir = new File("./demo");
        if(dir.exists()){
            System.out.println("该目录已存在");
        }else{
            dir.mkdirs();//一同创建
            System.out.println("该目录已创建");
        }
    }
}
